// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.p_activity;

import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.*;
import com.nnee.p_fk.cls_ActivityEx;

// Referenced classes of package com.nnee.p_pr.p_activity:
//            cq

public class cls_OfflineDownloadError extends cls_ActivityEx
    implements android.view.View.OnClickListener
{

    public cls_OfflineDownloadError()
    {
        i = null;
        k = new Object();
        l = false;
    }

    static ProgressDialog a(cls_OfflineDownloadError offlinedownloaderror)
    {
        return offlinedownloaderror.j;
    }

    static ProgressDialog a(cls_OfflineDownloadError offlinedownloaderror, ProgressDialog progressdialog)
    {
    	offlinedownloaderror.j = progressdialog;
        return progressdialog;
    }

    public static Intent a(Context context)
    {
        return a(context, a);
    }

    public static Intent a(Context context, int i1)
    {
        Intent intent = a(context, b);
        intent.putExtra(d, i1);
        return intent;
    }

    public static Intent a(Context context, String s)
    {
        Intent intent = new Intent();
        intent.setClass(context, com.nnee.p_pr.p_activity.cls_OfflineDownloadError.class);
        intent.setAction(s);
        return intent;
    }

    static boolean a(cls_OfflineDownloadError offlinedownloaderror, boolean flag)
    {
    	offlinedownloaderror.l = flag;
        return flag;
    }

    static Object b(cls_OfflineDownloadError offlinedownloaderror)
    {
        return offlinedownloaderror.k;
    }

    private void b()
    {
        e = (ImageView)findViewById(0x7f0d00ad);
        f = (TextView)findViewById(0x7f0d00ae);
        g = (TextView)findViewById(0x7f0d00af);
        h = (Button)findViewById(0x7f0d00ac);
        h.setOnClickListener(this);
    }

    static boolean c(cls_OfflineDownloadError offlinedownloaderror)
    {
        return offlinedownloaderror.l;
    }

    public void onClick(View view)
    {
        if(m != null)
        {
            m.cancel(true);
            m = null;
        }
        m = new cls_cq(this, this);
        m.execute(new Void[0]);
    }

    protected void onCreate(Bundle bundle)
    {
        Intent intent;
        super.onCreate(bundle);
        setContentView(0x7f030035);
        setTitle(0x7f0a0144);
        b();
        intent = getIntent();
        if(intent != null)
            i = intent.getAction();
        if(!TextUtils.isEmpty(i)) {
        	if(i.equals(a))
            {
                f.setText(0x7f0a020c);
                g.setText(0x7f0a020f);
                e.setImageResource(0x7f0200ca);
            } else
            if(i.equals(b))
            {
                e.setImageResource(0x7f0200cc);
                f.setText(0x7f0a0210);
                int i1 = intent.getIntExtra(d, 0);
                TextView textview = g;
                Object aobj[] = new Object[1];
                aobj[0] = Integer.valueOf(i1);
                textview.setText(getString(0x7f0a0211, aobj));
            }
        } else {
        	finish();
        }
 
    }

    protected void onDestroy()
    {
        super.onDestroy();
        if(m != null)
        {
            m.cancel(true);
            m = null;
        }
    }

    public static String a = "download_cache_no_space";
    public static String b = "cache_over_limit_error_type";
    public static int c = -1;
    private static String d = "left_size";
    private ImageView e;
    private TextView f;
    private TextView g;
    private Button h;
    private String i;
    private ProgressDialog j;
    private Object k;
    private boolean l;
    private cls_cq m;

}
